#include <base_component.hpp>
Public Member Functions | |
MatVecInterface (void) | |
virtual | ~MatVecInterface (void) |
virtual bool | matrixDiagSize (int *isize, int *jsize) const |
virtual bool | matrixDiagValues (ComplexType *values) |
virtual bool | matrixDiagValues (RealType *values) |
virtual bool | matrixForwardSize (int *isize, int *jsize) const |
virtual bool | matrixForwardValues (ComplexType *values) |
virtual bool | matrixForwardValues (RealType *values) |
virtual bool | matrixReverseSize (int *isize, int *jsize) const |
virtual bool | matrixReverseValues (ComplexType *values) |
virtual bool | matrixReverseValues (RealType *values) |
virtual bool | vectorSize (int *isize) const |
virtual bool | vectorValues (ComplexType *values) |
virtual bool | vectorValues (RealType *values) |
virtual void | setValues (ComplexType *values) |
virtual void | setValues (RealType *values) |
void | setMatVecIndex (int idx) |
void | getMatVecIndex (int *idx) const |
void | setMatVecIndices (int idx, int jdx) |
void | getMatVecIndices (int *idx, int *jdx) const |
gridpack::component::MatVecInterface::MatVecInterface | ( | void | ) |
Constructor
virtual gridpack::component::MatVecInterface::~MatVecInterface | ( | void | ) | [virtual] |
Destructor
void gridpack::component::MatVecInterface::getMatVecIndex | ( | int * | idx | ) | const |
void gridpack::component::MatVecInterface::getMatVecIndices | ( | int * | idx, | |
int * | jdx | |||
) | const |
virtual bool gridpack::component::MatVecInterface::matrixDiagSize | ( | int * | isize, | |
int * | jsize | |||
) | const [virtual] |
Return size of matrix block on the diagonal contributed by component
isize,jsize | number of rows and columns of matrix block |
Reimplemented in gridpack::ymatrix::YMBus, gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
virtual bool gridpack::component::MatVecInterface::matrixDiagValues | ( | RealType * | values | ) | [virtual] |
Reimplemented in gridpack::powerflow::PFBus.
virtual bool gridpack::component::MatVecInterface::matrixDiagValues | ( | ComplexType * | values | ) | [virtual] |
Return the values for a diagonal matrix block. The values are returned in row-major order.
values | pointer to matrix block values |
Reimplemented in gridpack::ymatrix::YMBus, gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
virtual bool gridpack::component::MatVecInterface::matrixForwardSize | ( | int * | isize, | |
int * | jsize | |||
) | const [virtual] |
Return size of off-diagonal matrix block contributed by component. The values are for the forward direction.
isize,jsize | number of rows and columns of matrix block |
Reimplemented in gridpack::ymatrix::YMBranch, gridpack::powerflow::PFBranch, and gridpack::state_estimation::SEBranch.
virtual bool gridpack::component::MatVecInterface::matrixForwardValues | ( | RealType * | values | ) | [virtual] |
Reimplemented in gridpack::powerflow::PFBranch.
virtual bool gridpack::component::MatVecInterface::matrixForwardValues | ( | ComplexType * | values | ) | [virtual] |
Return the values for an off-diagonl matrix block. The values are for the forward direction and are returned in row-major order.
values | pointer to matrix block values |
Reimplemented in gridpack::ymatrix::YMBranch, gridpack::powerflow::PFBranch, and gridpack::state_estimation::SEBranch.
virtual bool gridpack::component::MatVecInterface::matrixReverseSize | ( | int * | isize, | |
int * | jsize | |||
) | const [virtual] |
Return size of off-diagonal matrix block contributed by component. The values are for the reverse direction.
isize,jsize | number of rows and columns of matrix block |
Reimplemented in gridpack::ymatrix::YMBranch, gridpack::powerflow::PFBranch, and gridpack::state_estimation::SEBranch.
virtual bool gridpack::component::MatVecInterface::matrixReverseValues | ( | RealType * | values | ) | [virtual] |
Reimplemented in gridpack::powerflow::PFBranch.
virtual bool gridpack::component::MatVecInterface::matrixReverseValues | ( | ComplexType * | values | ) | [virtual] |
Return the values for an off-diagonl matrix block. The values are for the reverse direction and are returned in row-major order.
values | pointer to matrix block values |
Reimplemented in gridpack::ymatrix::YMBranch, gridpack::powerflow::PFBranch, and gridpack::state_estimation::SEBranch.
void gridpack::component::MatVecInterface::setMatVecIndex | ( | int | idx | ) |
void gridpack::component::MatVecInterface::setMatVecIndices | ( | int | idx, | |
int | jdx | |||
) |
virtual void gridpack::component::MatVecInterface::setValues | ( | RealType * | values | ) | [virtual] |
Reimplemented in gridpack::powerflow::PFBus.
virtual void gridpack::component::MatVecInterface::setValues | ( | ComplexType * | values | ) | [virtual] |
Set values in the bus or branch component based on values in a vector or matrix
values | values in vector or matrix |
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
virtual bool gridpack::component::MatVecInterface::vectorSize | ( | int * | isize | ) | const [virtual] |
Return size of vector block contributed by component
isize | number of vector elements |
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
virtual bool gridpack::component::MatVecInterface::vectorValues | ( | RealType * | values | ) | [virtual] |
Reimplemented in gridpack::powerflow::PFBus.
virtual bool gridpack::component::MatVecInterface::vectorValues | ( | ComplexType * | values | ) | [virtual] |
Return the values of the vector block
values | pointer to vector values |
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.